// 下载并引入路由
import VueRouter from "vue-router";
import Vue from "vue";
import Home from "@/pages/Home";
import Login from "@/pages/Login";

// 2.应用路由插件(比如注册一些router)
Vue.use(VueRouter);

const router = new VueRouter({
    mode:"history",
    routes:[
        {
            path:"/home",
            component: Home,
            name:"Home"
        },
        {
            path:"/Login",
            component: Login,
            name:"login"
        }
    ]
})

export default router